package com.service;

import com.exception.CustomException;
import com.github.pagehelper.Page;
import com.pageResult.PageResult;
import com.pojo.CheckGroup;
import com.pojo.Setmeal;
import com.query.QueryPageBean;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    //查询套餐占比
    List<Map<String,Object>> getSetmealReport();


    //查询该套餐对应的数据以及该套餐下的检查组+检查项
    Setmeal queryDetailById(Integer id);




    //查询所有带分页+条件
    PageResult selectByQueryString(QueryPageBean queryPageBean);
    //添加
    void add(Setmeal setmeal,Integer [] checkgroupIds) throws CustomException;
    //根据id查询数据
    Setmeal queryById(Integer SetmealId);
    //查询该套餐对应的检查组id
    Integer [] queryByCheckGroup(Integer SetmealId);
    //修改
    void update(Setmeal setmeal, Integer [] checkgroupIds) throws CustomException;
    //删除
    void delete(Integer SetmealId) throws CustomException;
    //查询所有
    List<Setmeal> findAll();


}
